/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.team1160.beta.season2011.output.drivetrain;

import com.team1160.beta.season2011.api.Constants;
import edu.wpi.first.wpilibj.RobotDrive;

/**
 * This class takes care of the low level programming to move the drivetrain.
 * @author CJ
 */
public class DriveTrain {
    RobotDrive rd;

    public DriveTrain(int frontleft,int frontright, int backleft, int backright){
        rd=new RobotDrive(frontleft,frontright,
                backleft,backright);
    }

    public void drive(DriveTrainCommand command){
        rd.arcadeDrive(command.get(DriveTrainCommand.JOYSTICK_Y_AXIS),
                command.get(DriveTrainCommand.JOYSTICK_Z_AXIS));
    }
}
